package com.ptp.backendcertms.basiccompnents.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 自定义工程配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "system")
public class ProjectProperties {

    /**
     * 登录相关配置
     */
    private LoginSecretProperties loginSecret;

    /**
     * 模版配置
     */
    private TemplateProperties template;


    @Data
    public static class LoginSecretProperties {
        private String secret;
    }

    @Data
    public static class TemplateProperties {
        /**
         * 证书导入模版路径
         */
        private String certificate;
        /**
         * 报告模版导入模版路径
         */
        private String report;
        /**
         * excel导入数据列表大小限制
         */
        private Integer excelListMaxSize;
        /**
         * 组织名称屏蔽词列表
         */
        private String[] orgNameShield;
    }
}